package leetcode.code0224;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution224 implements IDebug {

	public abstract int calculate(String s);

	@Override
	public void debug1() {
		String s = "1 + 1";
		int e = 2;
		int r = this.calculate(s);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		String s = " 2-1 + 2 ";
		int e = 3;
		int r = this.calculate(s);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		String s = " (1+(4+5+2)-3)+( 6+8) ";
		int e = 23;
		int r = this.calculate(s);
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
